Matthias Clasen [Sat, 26 Mar 2016 21:32:37 +0000 (17:32 -0400)]
Revert "window: Remove suspicious branch"
This reverts commit
67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2.
Bisection showed that this commit caused emacs windows to shrink
to a small size when first shown.
Matthias Clasen [Sat, 26 Mar 2016 20:08:01 +0000 (16:08 -0400)]
wayland: Add debug output for pixel formats
Use GDK_DEBUG=misc to see information about wl_shm pixel formats
supported by the compositor.
Matthias Clasen [Sat, 26 Mar 2016 19:15:28 +0000 (15:15 -0400)]
Deprecate gdk_visual_get_colormap_size
Since we don't have API for colormaps anymore, this is not
a useful function.
Matthias Clasen [Sat, 26 Mar 2016 19:06:10 +0000 (15:06 -0400)]
Deprecate gdk_visual_get_byte_order
This function is only useful when working with XImages,
and is not meaningfully implemented in other backends.
Matthias Clasen [Sat, 26 Mar 2016 18:58:48 +0000 (14:58 -0400)]
wayland: Fix up visual implementation
Don't return visuals that don't match the requested depth
and/or visual type.
Matthias Clasen [Sat, 26 Mar 2016 18:56:36 +0000 (14:56 -0400)]
Add some more visual tests
These are just basic tests to ensure that the visual implementation
of a backend is sound.
Matthias Clasen [Sat, 26 Mar 2016 18:20:23 +0000 (14:20 -0400)]
Deprecate gdk_visual_get_bits_per_rgb
This function is pretty useless, since the Wayland backend returns
0 for this, and the Windows backend 42 (!).
Matthias Clasen [Sat, 26 Mar 2016 18:08:10 +0000 (14:08 -0400)]
Add version macros for 3.22
Matthias Clasen [Sat, 26 Mar 2016 17:50:42 +0000 (13:50 -0400)]
range: Simplify highlight allocation
Since we are really only interested in the center point of the
slider allocation, the pre-computed slider geometry is perfectly
fine, just use it always. This avoids the complication with
gadget visibility.
Matthias Clasen [Sat, 26 Mar 2016 14:50:00 +0000 (10:50 -0400)]
range: Avoid miscalculating highlight allocation
The slider gadget may be turned invisible as side-effect of
gtk_range_calc_slider(). If that happens,
gtk_css_gadget_get_content_allocation() returns { 0, 0, 0, 0},
which leads us to calculate a negative allocation for the highlight
node. Avoid this, by just reusing our already calculated slider
allocation in this case (it is not technically the same as the
content, allocation, but the difference hardly matter here.
https://bugzilla.gnome.org/show_bug.cgi?id=764022
Matthias Clasen [Sat, 26 Mar 2016 14:09:19 +0000 (10:09 -0400)]
Add a test for the system rgba visual
The main point of this test is to ensure that the pixel_details
getters work as expected.
Matthias Clasen [Sat, 26 Mar 2016 14:10:16 +0000 (10:10 -0400)]
wayland: Fully initialize the visual
The pixel details (mask, shift and precision) are supposed to
be filled in for TrueColor visuals.
Matthias Clasen [Sat, 26 Mar 2016 13:32:51 +0000 (09:32 -0400)]
Make gdk_visual_get_*_pixel_details work again
These functions are supposed to return the numbers of consecutive
1 bits in each components mask as precision. However, due to a
copy-paste mistake when this code was moved around in
commit
70d689cddda0dc616af97e8ed047d0c0acf7c7a6, the precision
was always reported as zero. This affects only a few applications
that directly set window background on X11 windows, such as emacs.
https://bugzilla.gnome.org/show_bug.cgi?id=764210
Jordi Mas [Sat, 26 Mar 2016 07:10:28 +0000 (08:10 +0100)]
Update Catalan translation
Matthias Clasen [Sat, 26 Mar 2016 02:43:57 +0000 (22:43 -0400)]
HighContrastInverse: Fix suggested-action colors
Choose a suitable foreground color instead of hardcoding white.
https://bugzilla.gnome.org/show_bug.cgi?id=764170
Matthias Clasen [Sat, 26 Mar 2016 02:36:50 +0000 (22:36 -0400)]
gtk3-demo: Show more button styles
Add examples for suggested-action and destructive-action
buttons in the style classes example.
Matthias Clasen [Sat, 26 Mar 2016 02:39:53 +0000 (22:39 -0400)]
gtk3-demo: Rename "CSS Theming" group
Call it just "Themeing" to avoid the repetition of CSS.
Balázs Úr [Sat, 26 Mar 2016 00:47:32 +0000 (00:47 +0000)]
Updated Hungarian translation
Руслан Ижбулатов [Sat, 19 Mar 2016 09:49:56 +0000 (09:49 +0000)]
GDK W32: Optimize clipboard handling a bit
Delay as long as possible before calling OpenClipboard(),
call CloseClipboard() as quickly as possible after that.
Don't call OpenClipboard() when we don't need to (for example,
we don't need to open clipboard to call GetClipboardOwner()).
Also, print out actual W32 error code in some cases where it
was not printed before.
https://bugzilla.gnome.org/show_bug.cgi?id=763907
Руслан Ижбулатов [Mon, 21 Mar 2016 16:25:19 +0000 (16:25 +0000)]
GDK W32: Print error code along with the error message
Error codes can be easily looked up in an error code list
and/or googled up. Error messages, while descriptive, often
describe the wrong thing, and the messages themselves are not
part of the documentation of a function, unlike error codes.
It would be preferable to have the code, or both.
https://bugzilla.gnome.org/show_bug.cgi?id=763913
Руслан Ижбулатов [Sat, 19 Mar 2016 11:59:13 +0000 (11:59 +0000)]
GDK W32: Print more debug info about events
1) Print timestamps for events
2) Print wParam and lParam (in hex form) for messages
https://bugzilla.gnome.org/show_bug.cgi?id=763913
Piotr Drąg [Fri, 25 Mar 2016 20:27:21 +0000 (21:27 +0100)]
Updated POTFILES.in
Christoph Reiter [Fri, 25 Mar 2016 12:42:31 +0000 (13:42 +0100)]
inspector: add slider for adjusting the font scale
https://bugzilla.gnome.org/show_bug.cgi?id=761435
Matthias Clasen [Fri, 25 Mar 2016 19:52:22 +0000 (15:52 -0400)]
stack switcher: Add a missing include
Matthias Clasen [Sun, 13 Dec 2015 23:43:10 +0000 (18:43 -0500)]
dnd: Move GtkDragDest to a separate file
This follows what was done for GtkDragSource in
415030d25f2552d3937ee3c394c50d22c5382982 and shaves another
500 lines off gtkdnd.c.
Wolfgang Stöggl [Fri, 25 Mar 2016 18:20:27 +0000 (18:20 +0000)]
Updated German translation
(cherry picked from commit
5e5372ce74cfd06498dee1938f0249d1039ede16)
Wolfgang Stöggl [Fri, 25 Mar 2016 18:17:41 +0000 (18:17 +0000)]
Updated German translation
(cherry picked from commit
c08f4bd2a93e779158ed221c7ea75a9df8ffd35f)
Mohammed Sadik [Fri, 25 Mar 2016 12:38:07 +0000 (18:08 +0530)]
gtkaboutdialog: don't break ABI in GtkLicense enum
As the elements in the enum are not explicitly numbered, inserting an
element between some other elements shall change the values of elements
after the insertion. So append the new element at the end.
Anyway, no code should rely on the position of an element in an enum.
https://bugzilla.gnome.org/show_bug.cgi?id=763850
Matthias Clasen [Fri, 25 Mar 2016 17:12:00 +0000 (13:12 -0400)]
Add a css node test for scales
Olivier Fourdan [Thu, 24 Mar 2016 10:32:24 +0000 (11:32 +0100)]
popover: raise when showing
Some other widget might have mapped and raised another child window of
the toplevel in the meantime, causing the popover window to be covered.
Raise the popover window to avoid the issue.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=763627
Jordi Mas [Fri, 25 Mar 2016 13:27:16 +0000 (14:27 +0100)]
Fix Catalan translation
Milo Casagrande [Fri, 25 Mar 2016 10:58:30 +0000 (10:58 +0000)]
Updated Italian translation
(cherry picked from commit
be624e71f43ffe8ec5351fbce575388561c5a240)
Razvan Chitu [Mon, 14 Mar 2016 09:55:00 +0000 (11:55 +0200)]
trashmonitor: change trash monitoring process
The trash is monitored for state changes - going from empty to non-empty and the
other way round. Monitoring is done by handling change signals from a regular
file monitor. On each signal, an enumeration of the trash contents is started in
order to see if it is empty or not. This causes issues when many files are
trashed, because the gvfs trash backend is flooded with enumeration requests,
resulting in CPU usage spikes. In order to fix this, the "item-count" attribute
of the trash should be queried instead.
Replace asynchronous enumeration with asynchronous information query and update
the trash state based on the "item-count" attribute. Emit state change signal
only when the state actually changes.
https://bugzilla.gnome.org/show_bug.cgi?id=763600
Mohammed Sadik [Fri, 18 Mar 2016 14:18:29 +0000 (19:48 +0530)]
gtkaboutdialog: Add support for GNU Affero GPLv3+
Add support for GNU Affero GPLv3 (or later) to GtkLicense enum
https://bugzilla.gnome.org/show_bug.cgi?id=763850
Matthias Clasen [Thu, 24 Mar 2016 12:24:45 +0000 (08:24 -0400)]
add a css style test for font: smaller
Matthias Clasen [Fri, 25 Mar 2016 01:34:35 +0000 (21:34 -0400)]
3.20.1
Matthias Clasen [Fri, 25 Mar 2016 02:27:12 +0000 (22:27 -0400)]
Update css node test for GtkSwitch changes
Matthias Clasen [Fri, 25 Mar 2016 01:18:27 +0000 (21:18 -0400)]
Revert "add a css style test for font: smaller"
This reverts commit
a4ed154b037aaf03f8c166a711c326a030225eed.
The misparsing that is tested here will not be fixed in 3.20,
so keep this test out of the stable branch.
Mario Blättermann [Fri, 25 Mar 2016 00:41:41 +0000 (00:41 +0000)]
Updated German translation
Benjamin Otte [Thu, 24 Mar 2016 18:50:45 +0000 (19:50 +0100)]
menu: Clip children to view window
Don't overdraw the arrow allocations.
https://bugzilla.gnome.org/show_bug.cgi?id=764118
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:17:19 +0000 (20:17 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:15:34 +0000 (20:15 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 19:14:02 +0000 (20:14 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Thu, 24 Mar 2016 18:59:24 +0000 (19:59 +0100)]
Updated Basque language
Jakub Steiner [Thu, 24 Mar 2016 15:43:20 +0000 (16:43 +0100)]
High Contrast Inverse: switches
- make sure both non active and active states are contrasty
https://bugzilla.gnome.org/show_bug.cgi?id=763802
Jakub Steiner [Thu, 24 Mar 2016 15:35:19 +0000 (16:35 +0100)]
High Contrast Inverse: set contrasty selected items
- selected bg was set lighter without appropriate fg color
https://bugzilla.gnome.org/show_bug.cgi?id=763804
Jakub Steiner [Thu, 24 Mar 2016 15:32:01 +0000 (16:32 +0100)]
High Contrast Inverse: scale trough fix
- make the trough more visible for HCI
https://bugzilla.gnome.org/show_bug.cgi?id=763805
Piotr Drąg [Thu, 24 Mar 2016 14:35:11 +0000 (15:35 +0100)]
Updated POTFILES.skip
Matthias Clasen [Thu, 24 Mar 2016 12:24:45 +0000 (08:24 -0400)]
add a css style test for font: smaller
Lapo Calamandrei [Thu, 24 Mar 2016 12:15:23 +0000 (13:15 +0100)]
Adwaita: avoid sizing transition on the scale...
... since it ends up jumpy.
Lapo Calamandrei [Thu, 24 Mar 2016 10:33:33 +0000 (11:33 +0100)]
Adwaita: placesview connect to server label padding
adds some padding to the "connect to server" label
Lapo Calamandrei [Thu, 24 Mar 2016 10:25:52 +0000 (11:25 +0100)]
Adwaita: fix menu scroll arrows positioning
adresses the style part of
https://bugzilla.gnome.org/show_bug.cgi?id=764118
Dušan Kazik [Thu, 24 Mar 2016 06:51:38 +0000 (06:51 +0000)]
Updated Slovak translation
Benjamin Otte [Wed, 23 Mar 2016 17:14:57 +0000 (18:14 +0100)]
switch: An active switch is :checked
Fix an oversight that should have happened in the gadget refactoring:
An active switch should be :checked, just like togglebuttons,
checkbuttons, etc.
Christoph Reiter [Wed, 16 Mar 2016 18:25:30 +0000 (19:25 +0100)]
quartz: fix pixelated image surfaces in retina/hidpi mode
gtk+ currently depends on the scaling factor and the cairo device scale
of both the backend surfaces and image surfaces to be equal.
Until now we didn't apply a cairo device scale at all and depended on the
automatic scaling of CGContexts. This works when drawing with cairo but
fails in case of image surfaces, which get requested at a too small size.
To make the quartz backend behave more like the X11 one, set the cairo device
scale on the surface in gdk_quartz_ref_cairo_surface(). As this conflicts
with the default scaling done by CGContext (we would get double scaling)
undo the CGContext scaling using CGContextScaleCTM().
This patch is based on the following patches by Brion Vibber:
https://bugzilla.gnome.org/show_bug.cgi?id=740199#c4
https://bugs.freedesktop.org/show_bug.cgi?id=69796#c4
https://bugzilla.gnome.org/show_bug.cgi?id=763779
Stas Solovey [Wed, 23 Mar 2016 15:23:08 +0000 (15:23 +0000)]
Updated Russian translation
Fran Dieguez [Wed, 23 Mar 2016 11:20:59 +0000 (11:20 +0000)]
Updated Galician translation
Matej Urbančič [Tue, 22 Mar 2016 21:28:03 +0000 (22:28 +0100)]
Updated Slovenian translation
Stas Solovey [Tue, 22 Mar 2016 20:19:44 +0000 (20:19 +0000)]
Updated Russian translation
Matthias Clasen [Tue, 22 Mar 2016 18:55:55 +0000 (14:55 -0400)]
Run a11y tests with csd for make check
I've made this change for installed tests a while ago. It doesn't
make sense for distcheck to do it differently.
Matthias Clasen [Tue, 22 Mar 2016 12:20:20 +0000 (08:20 -0400)]
inspector: Look for themes in system data dirs
This matches what GTK+ does now.
Matthias Clasen [Tue, 22 Mar 2016 12:19:19 +0000 (08:19 -0400)]
Fix an accidentally deleted line
Not sure when this went missing, just fix the formatting.
Daniel Mustieles [Tue, 22 Mar 2016 11:28:57 +0000 (11:28 +0000)]
Updated Spanish translation
Dušan Kazik [Tue, 22 Mar 2016 06:35:00 +0000 (06:35 +0000)]
Updated Slovak translation
Zahari Yurukov [Tue, 22 Mar 2016 05:19:04 +0000 (07:19 +0200)]
Added Bulgarian translation
Matthias Clasen [Thu, 17 Mar 2016 04:57:45 +0000 (00:57 -0400)]
Load theme settings from the right location
When loading a per-theme settings.ini file, look for it in
the same directory where we found the gtk.css file for the
theme. Previously, we were always looking in
$prefix/share/themes/THEME/gtk-3.0/, even if the css was
loaded from somewhere else.
https://bugzilla.gnome.org/show_bug.cgi?id=641354
Matthias Clasen [Thu, 17 Mar 2016 04:32:53 +0000 (00:32 -0400)]
Also look in system data dirs for themes
With this change, we now look in
$XDG_DATA_HOME/themes/THEME/gtk-3.x
$HOME/.themes/THEME/gtk-3.x
$XDG_DATA_DIRS/themes/THEME/gtk-3.x
GTK_DATA_PREFIX/themes/THEME/gtk-3.x
https://bugzilla.gnome.org/show_bug.cgi?id=641354
Christian Hergert [Thu, 17 Mar 2016 06:35:20 +0000 (23:35 -0700)]
wayland: avoid dropping surfaces when possible
If the configure-event gives us the same size as we had before,
which is common for animation resizes, then try to keep the
existing buffer around. This saves us a memfd_create() syscall
on every frame.
https://bugzilla.gnome.org/show_bug.cgi?id=763350
Ask Hjorth Larsen [Mon, 21 Mar 2016 21:20:26 +0000 (22:20 +0100)]
Updated Danish translation
Lapo Calamandrei [Mon, 21 Mar 2016 18:42:54 +0000 (19:42 +0100)]
Adwaita: simplify treeview:drop(active) code
Matthias Clasen [Wed, 16 Mar 2016 18:03:44 +0000 (14:03 -0400)]
gtk-demo: Improve markup demo
Add squiggly underlines and background, and make the markup editable.
https://bugzilla.gnome.org/show_bug.cgi?id=763741
Benjamin Otte [Tue, 15 Mar 2016 23:35:45 +0000 (00:35 +0100)]
textview: Track differences between ink and logical rects
This way, we can ensure that we queue redraws on the full ink rect. This
is particularly visible for squiggly underlines in spell checking.
https://bugzilla.gnome.org/show_bug.cgi?id=763741
Tom Tryfonidis [Mon, 21 Mar 2016 17:21:09 +0000 (17:21 +0000)]
Updated Greek translation
Anders Jonsson [Mon, 21 Mar 2016 16:25:41 +0000 (16:25 +0000)]
Updated Swedish translation
Carlos Garnacho [Thu, 17 Mar 2016 17:38:40 +0000 (18:38 +0100)]
wayland: Rename internal functions with misleading naming
Now that GdkWaylandDeviceData is gone, the functions prefixed
"gdk_wayland_device_" and taking a GdkWaylandSeat as first
parameter feel out of place. Renaming those makes it more obvious
that it's seat functions.
https://bugzilla.gnome.org/show_bug.cgi?id=763859
Carlos Garnacho [Fri, 18 Mar 2016 13:11:50 +0000 (14:11 +0100)]
wayland: Remove GdkWaylandDataDevice typedef
It's no longer used.
https://bugzilla.gnome.org/show_bug.cgi?id=763859
Carlos Garnacho [Thu, 17 Mar 2016 17:32:03 +0000 (18:32 +0100)]
wayland: Replace all remaining uses of GdkWaylandDeviceData
And use GdkWaylandSeat in all of those. The variable names have also
been updated.
https://bugzilla.gnome.org/show_bug.cgi?id=763859
Carlos Garnacho [Thu, 17 Mar 2016 17:03:26 +0000 (18:03 +0100)]
wayland: Remove GdkWaylandDeviceData pointer in GdkWaylandDevice
It's the same than gdk_device_get_seat() nowadays. Also, rename the
usages of GdkWaylandDeviceData to GdkWaylandSeat in the functions
affected by the removal.
https://bugzilla.gnome.org/show_bug.cgi?id=763859
Matthias Clasen [Mon, 21 Mar 2016 16:10:44 +0000 (12:10 -0400)]
Fix the build
Matthias Clasen [Tue, 15 Mar 2016 11:51:48 +0000 (07:51 -0400)]
shortcutswindow: Make the search button square
Add the image-button style class to this button (this doesn't
work automatically here, since this is a toggle button).
https://bugzilla.gnome.org/show_bug.cgi?id=763604
Matthias Clasen [Sun, 20 Mar 2016 23:41:31 +0000 (19:41 -0400)]
Adwaita: Update treeview drop target styling
This reinstates the between-the-rows highlight that was lost
at some point.
https://bugzilla.gnome.org/show_bug.cgi?id=763808
Matthias Clasen [Sun, 20 Mar 2016 23:31:23 +0000 (19:31 -0400)]
treeview: Update drop target highlighting
Stop using the .dnd style class, and instead use the
:drop(active) pseudo state, together with .before and .after
classes.
https://bugzilla.gnome.org/show_bug.cgi?id=763808
Matthias Clasen [Sun, 20 Mar 2016 22:09:45 +0000 (18:09 -0400)]
quartz: Fix up dnd code
Copy changes to drag highlight drawing from gtkdnd.c to gtkdnd-quartz.c.
https://bugzilla.gnome.org/show_bug.cgi?id=763808
Christian Hergert [Sat, 19 Mar 2016 02:27:31 +0000 (19:27 -0700)]
stack: query preferred size for last_visible_child
When animating, we might be changing the size allocation of the previous
stack child. However, we were not querying the size in the process
meaning you would often see warnings about allocating the size without
knowing what it should be.
This simply adds an innocuous size request, since responding to last_child
sizing requests is not all that critical in the transition.
https://bugzilla.gnome.org/show_bug.cgi?id=763900
Carlos Garcia Campos [Sat, 12 Mar 2016 09:25:43 +0000 (10:25 +0100)]
gtk-demo: Rework foreigndrawing to use sizes from the theme
Instead of hardcoding the size of the widgets. This makes the output
closer to real widgets and fixes the blurry icons. I've also added a
scale.
https://bugzilla.gnome.org/show_bug.cgi?id=763758
Matthias Clasen [Wed, 16 Mar 2016 20:49:21 +0000 (16:49 -0400)]
dnd: Hide the drag window when we're done
We were just relying on the drag context finalize() to destroy
the window. But with garbage-collected bindings, that might
not happen as soon as we like, so explicitly hide the window
when the drag ends successfully.
https://bugzilla.gnome.org/show_bug.cgi?id=763659
Debarshi Ray [Wed, 16 Mar 2016 01:18:24 +0000 (02:18 +0100)]
print-operation: Be more robust in the error path
This isn't an issue at the moment. Only exporting to a file can fail
by setting by setting an error and it happens to correctly return
GTK_PRINT_OPERATION_RESULT_ERROR regardless of this code.
Still, let's make this block of code more correct to prevent future
changes from introducing broken behaviour.
https://bugzilla.gnome.org/show_bug.cgi?id=763731
Ask Hjorth Larsen [Mon, 21 Mar 2016 13:10:54 +0000 (13:10 +0000)]
Updated Danish translation
Matthias Clasen [Mon, 21 Mar 2016 11:04:12 +0000 (07:04 -0400)]
3.20.0
Jiri Grönroos [Mon, 21 Mar 2016 11:28:44 +0000 (11:28 +0000)]
Updated Finnish translation
Marek Černocký [Mon, 21 Mar 2016 10:49:01 +0000 (11:49 +0100)]
Updated Czech translation
Artur Morais [Mon, 21 Mar 2016 10:28:50 +0000 (10:28 +0000)]
Updated Brazilian Portuguese translation
Milo Casagrande [Mon, 21 Mar 2016 08:55:26 +0000 (08:55 +0000)]
Updated Italian translation
Balázs Úr [Mon, 21 Mar 2016 06:30:55 +0000 (06:30 +0000)]
Updated Hungarian translation
Ask Hjorth Larsen [Mon, 21 Mar 2016 03:42:41 +0000 (04:42 +0100)]
Updated Danish translation
Piotr Drąg [Mon, 21 Mar 2016 03:04:03 +0000 (04:04 +0100)]
Updated Polish translation
Matthias Clasen [Mon, 21 Mar 2016 02:49:33 +0000 (22:49 -0400)]
Document gdk_wayland_seat_get_wl_seat
Matthias Clasen [Mon, 21 Mar 2016 02:47:22 +0000 (22:47 -0400)]
Add gk_gl_context_is_legacy to the docs
Matthias Clasen [Mon, 21 Mar 2016 02:45:06 +0000 (22:45 -0400)]
gdk: Add a missing Since tag
gdk_drag_context_manage_dnd was introduced this cycle.
Matthias Clasen [Mon, 21 Mar 2016 02:44:29 +0000 (22:44 -0400)]
Add gdk_drag_context_manage_dnd to the docs